avahi: Fail immediately if we can't talk to D-Bus or Avahi
authorSimon McVittie <smcv@debian.org>
Fri, 22 Jun 2018 00:10:55 +0000 (01:10 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sat, 23 Jun 2018 14:54:39 +0000 (14:54 +0000)
commite120a6b1198aaa785533c76316898f15a804dae1
tree3dc18818133eb9d190604b1d7d12d865bacd01c2
parent8d97b552412de0baa109255c9d8e3bca04ed27ff
avahi: Fail immediately if we can't talk to D-Bus or Avahi

We special-case AVAHI_ERR_NO_DAEMON to not cause warnings, but if
we pass AVAHI_CLIENT_NO_FAIL to avahi_client_new, we never actually
see AVAHI_ERR_NO_DAEMON. Instead, we will get AVAHI_ERR_BAD_STATE
when we try to use the client.

Closes: #1618
Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #1639
Approved by: cgwalters
src/libostree/ostree-repo-finder-avahi.c